package practice04;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice04
 * @ClassName: Calculator
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/1 15:16
 * @Copyright 大牛版板所有
 */
public class Calculator {
    double firstNum;
    double secondNum;

    public double add(){
        return (this.firstNum + this.secondNum);
    }

    public double sub(){
        return (this.firstNum - this.secondNum);
    }

    public double mul(){
        return (this.firstNum * this.secondNum);
    }

    public double div(){
        return (this.firstNum / this.secondNum);
    }
}
